<?php
require_once ('scripts.php');

class AdminService
{

    public function loginUser($loginVO) 
	{
      	$loginResult = AdminDAOImpl::getInstance()->loginUser($loginVO);
		return $loginResult;
    }

	public function asignLoginStatus($status) 
	{
      	$statusResult = AdminDAOImpl::getInstance()->asignLoginStatus($status);
		return $statusResult;
    }

	public function getStatusList() 
	{
      	$statusResult = AdminDAOImpl::getInstance()->getStatusList();
		return $statusResult;
    }

	public function changeStatus($peerID) 
	{
      	$statusResult = AdminDAOImpl::getInstance()->changeStatus($peerID);
		return $statusResult;
    }
    
	public function deleteUser($peerID) 
	{
      	$statusResult = AdminDAOImpl::getInstance()->deleteUser($peerID);
		return $statusResult;
    }
    
	public function getAllAdministrator() 
	{
      	$result = AdminDAOImpl::getInstance()->getAllAdministrator();
		return $result;
    }
	
	public function createNewAdministrator($adminVO) 
	{
      	$result = AdminDAOImpl::getInstance()->createNewAdministrator($adminVO);
		return $result;
    }
    
	public function updateAdministratorByID($adminVO) 
	{
      	$result = AdminDAOImpl::getInstance()->updateAdministratorByID($adminVO);
		return $result;
    }
    
	public function deleteAdministratorByID($id) 
	{
      	$result = AdminDAOImpl::getInstance()->deleteAdministratorByID($id);
		return $result;
    }
    
	public function getCommentListByParentID($parentID) 
	{
      	$result = AdminDAOImpl::getInstance()->getCommentListByParentID($parentID);
		return $result;
    }
    
	public function addSubject($subject) 
	{
      	$result = AdminDAOImpl::getInstance()->addSubject($subject);
		return $result;
    }
    
	public function deleteSubject($commentID) 
	{
      	$result = AdminDAOImpl::getInstance()->deleteSubject($commentID);
		return $result;
    }
    
	public function getNotificationByUserID($userID) 
	{
      	$result = AdminDAOImpl::getInstance()->getNotificationByUserID($userID); 
		return $result;
    }
    
    public function getTowerCompany()
    {
          $result = AdminDAOImpl::getInstance()->getTowerCompany();
        return $result;
    }
    
	public function deleteNotification($notID) 
	{
      	$result = AdminDAOImpl::getInstance()->deleteNotification($notID); 
		return $result;
    }
}
?>